import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询床位类型信息列表
export function listBtype(query) {
  return request({
    url: '/system/btype/list',
    method: 'get',
    params: query
  })
}

// 查询床位类型信息详细
export function getBtype(btypeId) {
  return request({
    url: '/system/btype/' + btypeId,
    method: 'get'
  })
}

// 新增床位类型信息
export function addBtype(data) {
  return request({
    url: '/system/btype',
    method: 'post',
    data: data
  })
}

// 修改床位类型信息
export function updateBtype(data) {
  return request({
    url: '/system/btype',
    method: 'put',
    data: data
  })
}

// 删除床位类型信息
export function delBtype(btypeId) {
  return request({
    url: '/system/btype/' + btypeId,
    method: 'delete'
  })
}
